﻿using System;
using System.Globalization;
using System.Xml.Serialization;

namespace ICalendar.CalendarProperties
{
    /// <summary>
    /// This property provides a more complete description of the calendar component, than that provided by the "SUMMARY" property.
    /// </summary>
    [XmlRoot("description")]
    [Serializable]
    public class Description : TextBase
    {
        public Description(string description) : base(description)
        {
        }

        public Description(string description, CultureInfo language, Uri alternateTextRepresentation) : base(description, language, alternateTextRepresentation)
        {
        }

        public static implicit operator Description(string text)
        {
            return new Description(text);
        }
    }
}
